<?php

$pluginName = 'gd';
class thumbnailPlugins_gd extends BaseThumbnail
{
	public function getThumbnail()
	{
		$thumb = parent::getThumbnail();
		if($thumb === false)
		{
			$thumbnail = JGLib::imageThumbnail($this->file->getURI(), THUMBNAIL_X, THUMBNAIL_Y);
			$thumb = $this->saveToCache($thumbnail);
		}
		return $thumb;
	}
	
	public static function getMimeHandle()
	{
		return array(
			'image/bmp',
			'image/gif',
			'image/jpeg',
			'image/png',
			'image/tiff');
	}
	
	public static function getPluginName()
	{
		return 'gd';
	}
	
	public static function getPriority()
	{
		return 10;
	}
}
